package design.patterns.adaptermode.classadapter;

/**
 * @Desc:   Jone 自己实现了 Puppie 接口，并借用了  Kittie 类的功能
 * @author: cww
 * @DateTime: 2020/6/9 20:46
 */

public class John extends Kittle implements Puppie {

    @Override
    public void wao() {
        this.miao();
    }

    @Override
    public void fetchBall() {
        this.catchRat();
    }

    public void run()
    {
        super.run();
    }

    public void sleep()
    {
        super.sleep();
    }

    public String getName()
    {
        return super.getName();
    }

    public void setName(String name)
    {
        super.setName(name);
    }

}
